﻿using System;

namespace ProxyTool.Services
{
    /// <summary>
    ///     服务异常
    /// </summary>
    public class ServiceException : Exception
    {
        public ServiceException(string serviceName, string errMsg) : this(serviceName, errMsg, string.Empty)
        {
        }

        public ServiceException(string serviceName, string errMsg, string stackTraceString) : base(errMsg)
        {
            ServiceName = serviceName;
            StackTraceString = stackTraceString;
        }

        public string ServiceName { get; private set; }
        public string StackTraceString { get; private set; }
    }
}